package com.ruoyi.business.payment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.business.payment.domain.TRegisterPaymentOrder;
import com.ruoyi.business.payment.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预支付订单信息Mapper接口
 *
 * @author Tellsea
 * @date 2025-06-22
 */
public interface TRegisterPaymentOrderMapper extends BaseMapper<TRegisterPaymentOrder> {

    Page<TRegisterPaymentOrderDto> queryList(Page<?> page, @Param("entity") TRegisterPaymentOrderVo entity);

    List<TRegisterPaymentOrderDto> queryList(@Param("entity") TRegisterPaymentOrderVo entity);

    TRegisterPaymentOrderDto queryById(@Param("id") Long orderId);

    TRegisterPaymentOrderDto queryByRegisterId(@Param("registerId") Long registerId);

    List<TRegisterPaymentOrderVo> queryForTimeOutOrder();

    List<TRegisterWillExpirationOrderVo> queryWillExpirationOrder();

    TRegisterPaymentOrderStatDto queryByStat(@Param("entity") TRegisterPaymentOrderVo entity);

    Page<TRegisterPaymentOrderDeptDto> queryByDept(Page<?> page, @Param("entity") TRegisterPaymentOrderVo entity);

}
